import request from '@/utils/request'

// 获取团单列表
export function GetAdminSingleList (params) {
  return request({
    url: '/admin/GetAdminSingleList',
    method: 'post',
    params
  })
}

// 创建团单
export function CreateSingle (data) {
  return request({
    url: '/admin/CreateSingle',
    method: 'post',
    data: data
  })
}

// 修改团单信息
export function UpdatetSingle (data) {
  return request({
    url: '/admin/UpdatetSingle',
    method: 'post',
    data: data
  })
}

// 修改团单的售卖状态
export function updateSaleStatus (params) {
  return request({
    url: '/admin/updateSaleStatus',
    method: 'post',
    params
  })
}

// 修改团单的返利状态和返利金额
export function updateRebateStatus (params) {
  return request({
    url: '/admin/updateRebateStatus',
    method: 'post',
    params
  })
}